#  Makefile for local utility tool kit
# 
#  $Id: Makefile.in 2 2005-07-14 15:06:08Z root $
#

CC       = @CC@
CFLAGS   = @CFLAGS@ -I../../include
BBSHOME	 = @BBS_HOME@

UTILITY  = account averun bbstop bbspop3d birthday horoscope usage_day remake\
	   newacct poststat showuser bbsuptime badbms AnnIndex showbm statBM\
	   countid

.c.o:   ;   $(CC) $(CFLAGS) -c $*.c

all: $(UTILITY)

install: $(UTILITY)
	cp $(UTILITY) $(BBSHOME)/bin/@stat

clean:
	rm -fr *.o *.BAK *.log $(UTILITY) *core* DEAD* *~

bbspop3d:
	$(CC) $(CFLAGS) -o bbspop3d bbspop3d.c @libCRYPT@

usage: usage.c record.c
       $(CC) $(CFLAGS) -o usage usage.c record.c

usage_day: usage_day.c record.c
       $(CC) $(CFLAGS) -o usage_day usage_day.c record.c
